package app.vendorportal.api.marketplace.data.request;

import org.hibernate.validator.constraints.NotEmpty;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
 * @author carl.you
 */
@XmlRootElement(name = "find-order-submission-status-request")
@XmlAccessorType(XmlAccessType.FIELD)
public class FindOrderSubmissionStatusRequest {

    @NotEmpty(message = "orderId is required filed")
    @XmlElementWrapper(name = "order-ids")
    @XmlElement(name = "order-id")
    private final List<String> orderIds = new ArrayList<>();

    public List<String> getOrderIds() {
        return orderIds;
    }
}
